package net.shop.dal.entity;

import java.io.Serializable;

import net.shop.biz.vo.ProductVo;


public class Product extends ValueObjectEntity<ProductVo> implements Serializable {

	private static final long serialVersionUID = 1700564822372765912L;

	/* 基本信息 */
	private int productId;
	private long haseCode;
	private int categoryId;
	private short providerId;
	private short brandId;
	private String productSn;
	private String productName;
	private String productPic;
	private double salePrice;
	private String friendlyUrl;
	private int stockNum;
	private float rateAverage;
	private int rateReviews;
	
	/* 语言 */
	private LangProduct lang;
	
	@Override
	public ProductVo getVo() {
		return this.vo;
	}

	/* Getters And Setters */
	public int getProductId() {
		return productId;
	}

	public void setProductId(int productId) {
		this.productId = productId;
	}

	public long getHaseCode() {
		return haseCode;
	}

	public void setHaseCode(long haseCode) {
		this.haseCode = haseCode;
	}

	public int getCategoryId() {
		return categoryId;
	}

	public void setCategoryId(int categoryId) {
		this.categoryId = categoryId;
	}

	public short getProviderId() {
		return providerId;
	}

	public void setProviderId(short providerId) {
		this.providerId = providerId;
	}

	public short getBrandId() {
		return brandId;
	}

	public void setBrandId(short brandId) {
		this.brandId = brandId;
	}

	public String getProductSn() {
		return productSn;
	}

	public void setProductSn(String productSn) {
		this.productSn = productSn;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public String getProductPic() {
		return productPic;
	}

	public void setProductPic(String productPic) {
		this.productPic = productPic;
	}

	public double getSalePrice() {
		return salePrice;
	}

	public void setSalePrice(double salePrice) {
		this.salePrice = salePrice;
	}

	public String getFriendlyUrl() {
		return friendlyUrl;
	}

	public void setFriendlyUrl(String friendlyUrl) {
		this.friendlyUrl = friendlyUrl;
	}

	public int getStockNum() {
		return stockNum;
	}

	public void setStockNum(int stockNum) {
		this.stockNum = stockNum;
	}

	public float getRateAverage() {
		return rateAverage;
	}

	public void setRateAverage(float rateAverage) {
		this.rateAverage = rateAverage;
	}

	public int getRateReviews() {
		return rateReviews;
	}

	public void setRateReviews(int rateReviews) {
		this.rateReviews = rateReviews;
	}

	public LangProduct getLang() {
		return lang;
	}

	public void setLang(LangProduct lang) {
		this.lang = lang;
	}
	
}
